Integrand size = 25, antiderivative size = 115 \[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=-\frac {(3 c+5 d) \text {arctanh}\left (\frac {\sqrt {\frac {3}{2}} \cos (e+f x)}{\sqrt {3+3 \sin (e+f x)}}\right )}{144 \sqrt {6} f}-\frac {(c-d) \cos (e+f x)}{4 f (3+3 \sin (e+f x))^{5/2}}-\frac {(3 c+5 d) \cos (e+f x)}{48 f (3+3 \sin (e+f x))^{3/2}} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 126, normalized size of antiderivative = 1.10, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.160, Rules used = {2829, 2729, 2728, 212} \[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=-\frac {(3 c+5 d) \text {arctanh}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a \sin (e+f x)+a}}\right )}{16 \sqrt {2} a^{5/2} f}-\frac {(3 c+5 d) \cos (e+f x)}{16 a f (a \sin (e+f x)+a)^{3/2}}-\frac {(c-d) \cos (e+f x)}{4 f (a \sin (e+f x)+a)^{5/2}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2729
Rule 2829
Rubi steps \begin{align*} \text {integral}& = -\frac {(c-d) \cos (e+f x)}{4 f (a+a \sin (e+f x))^{5/2}}+\frac {(3 c+5 d) \int \frac {1}{(a+a \sin (e+f x))^{3/2}} \, dx}{8 a} \\ & = -\frac {(c-d) \cos (e+f x)}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+5 d) \cos (e+f x)}{16 a f (a+a \sin (e+f x))^{3/2}}+\frac {(3 c+5 d) \int \frac {1}{\sqrt {a+a \sin (e+f x)}} \, dx}{32 a^2} \\ & = -\frac {(c-d) \cos (e+f x)}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+5 d) \cos (e+f x)}{16 a f (a+a \sin (e+f x))^{3/2}}-\frac {(3 c+5 d) \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{16 a^2 f} \\ & = -\frac {(3 c+5 d) \text {arctanh}\left (\frac {\sqrt {a} \cos (e+f x)}{\sqrt {2} \sqrt {a+a \sin (e+f x)}}\right )}{16 \sqrt {2} a^{5/2} f}-\frac {(c-d) \cos (e+f x)}{4 f (a+a \sin (e+f x))^{5/2}}-\frac {(3 c+5 d) \cos (e+f x)}{16 a f (a+a \sin (e+f x))^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.76 (sec) , antiderivative size = 230, normalized size of antiderivative = 2.00 \[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=\frac {\left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right ) \left (8 (c-d) \sin \left (\frac {1}{2} (e+f x)\right )+4 (-c+d) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )+2 (3 c+5 d) \sin \left (\frac {1}{2} (e+f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^2-(3 c+5 d) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3+(1+i) (-1)^{3/4} (3 c+5 d) \text {arctanh}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) (-1)^{3/4} \left (-1+\tan \left (\frac {1}{4} (e+f x)\right )\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^4\right )}{144 \sqrt {3} f (1+\sin (e+f x))^{5/2}} \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. \(278\) vs. \(2(107)=214\).
Time = 2.68 (sec) , antiderivative size = 279, normalized size of antiderivative = 2.43
method | result | size |
default | \(-\frac {\left (-\sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3} \left (3 c +5 d \right ) \left (\cos ^{2}\left (f x +e \right )\right )+2 \sin \left (f x +e \right ) \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3} \left (3 c +5 d \right )+20 \sqrt {a -a \sin \left (f x +e \right )}\, a^{\frac {5}{2}} c +12 \sqrt {a -a \sin \left (f x +e \right )}\, a^{\frac {5}{2}} d -6 \left (a -a \sin \left (f x +e \right )\right )^{\frac {3}{2}} a^{\frac {3}{2}} c -10 \left (a -a \sin \left (f x +e \right )\right )^{\frac {3}{2}} a^{\frac {3}{2}} d +6 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3} c +10 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3} d \right ) \sqrt {-a \left (\sin \left (f x +e \right )-1\right )}}{32 a^{\frac {11}{2}} \left (\sin \left (f x +e \right )+1\right ) \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(279\) |
parts | \(-\frac {c \left (-3 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) \sqrt {2}\, a^{2} \left (\cos ^{2}\left (f x +e \right )\right )+6 \sqrt {a -a \sin \left (f x +e \right )}\, \sin \left (f x +e \right ) a^{\frac {3}{2}}+6 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{2} \sin \left (f x +e \right )+14 \sqrt {a -a \sin \left (f x +e \right )}\, a^{\frac {3}{2}}+6 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{2}\right ) \sqrt {-a \left (\sin \left (f x +e \right )-1\right )}}{32 a^{\frac {9}{2}} \left (\sin \left (f x +e \right )+1\right ) \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}+\frac {d \left (5 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3} \left (\cos ^{2}\left (f x +e \right )\right )+10 \left (a -a \sin \left (f x +e \right )\right )^{\frac {3}{2}} a^{\frac {3}{2}}-12 \sqrt {a -a \sin \left (f x +e \right )}\, a^{\frac {5}{2}}-10 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) \sin \left (f x +e \right ) a^{3}-10 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3}\right ) \sqrt {-a \left (\sin \left (f x +e \right )-1\right )}}{32 a^{\frac {11}{2}} \left (\sin \left (f x +e \right )+1\right ) \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) | \(394\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 392 vs. \(2 (107) = 214\).
Time = 0.29 (sec) , antiderivative size = 392, normalized size of antiderivative = 3.41 \[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=\frac {\sqrt {2} {\left ({\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right )^{3} + 3 \, {\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right ) + {\left ({\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right )^{2} - 2 \, {\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right ) - 12 \, c - 20 \, d\right )} \sin \left (f x + e\right ) - 12 \, c - 20 \, d\right )} \sqrt {a} \log \left (-\frac {a \cos \left (f x + e\right )^{2} - 2 \, \sqrt {2} \sqrt {a \sin \left (f x + e\right ) + a} \sqrt {a} {\left (\cos \left (f x + e\right ) - \sin \left (f x + e\right ) + 1\right )} + 3 \, a \cos \left (f x + e\right ) - {\left (a \cos \left (f x + e\right ) - 2 \, a\right )} \sin \left (f x + e\right ) + 2 \, a}{\cos \left (f x + e\right )^{2} - {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) + 4 \, {\left ({\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right )^{2} + {\left (7 \, c + d\right )} \cos \left (f x + e\right ) + {\left ({\left (3 \, c + 5 \, d\right )} \cos \left (f x + e\right ) - 4 \, c + 4 \, d\right )} \sin \left (f x + e\right ) + 4 \, c - 4 \, d\right )} \sqrt {a \sin \left (f x + e\right ) + a}}{64 \, {\left (a^{3} f \cos \left (f x + e\right )^{3} + 3 \, a^{3} f \cos \left (f x + e\right )^{2} - 2 \, a^{3} f \cos \left (f x + e\right ) - 4 \, a^{3} f + {\left (a^{3} f \cos \left (f x + e\right )^{2} - 2 \, a^{3} f \cos \left (f x + e\right ) - 4 \, a^{3} f\right )} \sin \left (f x + e\right )\right )}} \]
[In]
[Out]
\[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=\int \frac {c + d \sin {\left (e + f x \right )}}{\left (a \left (\sin {\left (e + f x \right )} + 1\right )\right )^{\frac {5}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=\int { \frac {d \sin \left (f x + e\right ) + c}{{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 236 vs. \(2 (107) = 214\).
Time = 0.40 (sec) , antiderivative size = 236, normalized size of antiderivative = 2.05 \[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=\frac {\frac {\sqrt {2} {\left (3 \, \sqrt {a} c + 5 \, \sqrt {a} d\right )} \log \left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {\sqrt {2} {\left (3 \, \sqrt {a} c + 5 \, \sqrt {a} d\right )} \log \left (-\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}{a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {2 \, {\left (3 \, \sqrt {2} \sqrt {a} c \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} + 5 \, \sqrt {2} \sqrt {a} d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{3} - 5 \, \sqrt {2} \sqrt {a} c \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 3 \, \sqrt {2} \sqrt {a} d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{{\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - 1\right )}^{2} a^{3} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{64 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {c+d \sin (e+f x)}{(3+3 \sin (e+f x))^{5/2}} \, dx=\int \frac {c+d\,\sin \left (e+f\,x\right )}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}} \,d x \]
[In]
[Out]